﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="ManagementTeamTasks.aspx.cs" Inherits="CDSBDemandControl.View.Web.PaginasInternas.ManagementTeamTasks" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="divDireita" style="vertical-align: middle;">
                    <span class="Obs">
                        <asp:Label ID="LblObsOrdenacao" runat="server" Text=""></asp:Label>
                    </span>
                </div>

<asp:GridView ID="GridManagementTeamTasks" runat="server" Caption="Acompanhamento de Tasks" CaptionAlign="Left"
        AutoGenerateColumns="False" CellPadding="2"  Visible="False" AllowSorting="True"
        GridLines="None" OnDataBinding="Grid_DataBinding" OnRowDataBound="GridManagementTeamTasks_RowDataBound">
        <RowStyle BackColor="#E1ECFC" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" />
        <Columns>
            <asp:TemplateField HeaderText="Id">
                <ItemTemplate>
                    <asp:Label ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Projeto">
                <ItemTemplate>
                    <asp:Label ID="lblProject" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Project") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="100px" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Titulo">
                <ItemTemplate>
                    <asp:Label ID="lblTitle" runat="server" Text='<%# this.formatTitle(DataBinder.Eval(Container.DataItem, "Title"),DataBinder.Eval(Container.DataItem, "Description")) %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="500px" />
            </asp:TemplateField>
            
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" AlternateText='<%# string.IsNullOrEmpty(Eval("PlanningStateRemarks").ToString()) ? string.Empty : Eval("PlanningStateRemarks") %>'
                        ImageUrl='<%# Eval("PlanningStateImg")%>' Visible='<%# !string.IsNullOrEmpty(Eval("PlanningStateImg").ToString()) %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Início Estimado">
                <ItemTemplate>
                    <asp:Label ID="lblState" runat="server" Text='<%# Bind("EstimatedStart", "{0:dd/MM/yyyy}") %>' CssClass='<%# Eval("StatusColor")%>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="70px" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Término Estimado">
                <ItemTemplate>
                    <asp:Label ID="lblState" runat="server" Text='<%# Bind("EstimatedConclude", "{0:dd/MM/yyyy}") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="70px" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="WorkItem">
                <ItemTemplate>
                    <asp:Label ID="lblTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "WorkItemType") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Status">
                <ItemTemplate>
                    <asp:Label ID="lblState" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "State") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Responsável">
                <ItemTemplate>
                    <asp:Label ID="lblDesigned" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedTo") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="200px" />
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Horas Estimadas">
                <ItemTemplate>
                    <asp:Label ID="lblState" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "EstimatedHours") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
            
        </Columns>
        <FooterStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <HeaderStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <AlternatingRowStyle BackColor="White" Font-Names="Verdana" Font-Size="X-Small" Wrap="False" />
    </asp:GridView>
<br />

<table>
        <tr>
            <td>
                <div runat="server" id="DvLegenda" visible="true">
                    <table border="0" cellpadding="0" cellspacing="0" class="TableLegenda">
                        <tr>
                            <td colspan="2" style="padding: 0 0 4px 0;">
                                <br />
                                Legenda:
                            </td>
                        </tr>
                        <tr>
                            <td class="late">
                                <asp:Label ID="LgdFormatoLATE" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescLATE" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="deadline">
                                <asp:Label ID="LgdFormatoDEADLINE" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescDEADLINE" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="deadlinecoming">
                                <asp:Label ID="LgdFormatoDEADLINECOMMING" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescDEADLINECOMMING" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="away">
                                <asp:Label ID="LgdFormatoAWAY" runat="server"></asp:Label>
                            </td>
                            <td>
                                :
                                <asp:Label ID="LgdDescAWAY" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>

</asp:Content>
